package com.atguigu.lease.web.app.service;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.app.vo.room.RoomDetailVo;
import com.atguigu.lease.web.app.vo.room.RoomItemVo;
import com.atguigu.lease.web.app.vo.room.RoomQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author yangchengbao
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2023-07-26 11:12:39
*/
public interface RoomInfoService extends IService<RoomInfo> {
    /**
     * @param roomItemVoPage
     * @param queryVo
     * @Desceription: 分页查询房间列表
     * @Return: com.baomidou.mybatisplus.core.metadata.IPage<com.atguigu.lease.web.app.vo.room.RoomItemVo>
     * @Author: yangchengbao
     * @Date: 2025-01-09 10:01:39
     */
    IPage<RoomItemVo> pageItem(Page<RoomItemVo> roomItemVoPage, RoomQueryVo queryVo);

    /**
     * @param id
     * @Desceription: 根据id获取房间的详细信息
     * @Return: com.atguigu.lease.web.app.vo.room.RoomDetailVo
     * @Author: yangchengbao
     * @Date: 2025-01-11 09:01:98
     */
    RoomDetailVo getDatailById(Long id);

    /**
     * @param roomItemVoPage
     * @param id
     * @Desceription: 根据公寓id分页查询房间列表
     * @Return: com.baomidou.mybatisplus.core.metadata.IPage<com.atguigu.lease.web.app.vo.room.RoomItemVo>
     * @Author: yangchengbao
     * @Date: 2025-01-11 10:01:40
     */
    IPage<RoomItemVo> pageItemByApartmentId(Page<RoomItemVo> roomItemVoPage, Long id);
}
